import request from '@/utils/request'
import { bb } from '@/utils/request';

//const bb = 'http://127.0.0.1:8080';
//const bb = 'http://182.92.190.174:8081';
//遍历游戏
export function getList(current,limit){
  return request({
    baseURL: bb,
    url: `/partner/selectPro/${current}/${limit}`,
    method: 'post',
  })
}

export function addPro(proName,proCost){
  return request({
    baseURL: bb,
    url: `/partner/addPro/${proName}/${proCost}`,
    method: 'get',
  })
}

export function updatePro(partner){
  return request({
    baseURL: bb,
    url: `/partner/updatePro`,
    method: 'put',
    data:partner
  })
}

export function deletePro(proId){
  return request({
    baseURL: bb,
    url: `/partner/deletePro/${proId}`,
    method: 'delete',
  })
}

export function deleteProAll(all){
  return request({
    baseURL: bb,
    url: `/partner/deleteProAll`,
    method: 'delete',
    data:all
  })
}
